package modelLayer.Exceptions;


public class DuplicateAccountNameException extends Exception{
    private String message,name;
    private double balance;
    
    public DuplicateAccountNameException(String message,String name, double balance) {
        this.message=message;
        this.name=name;
        this.balance=balance;
    }
    
    public String getMessage() {
        return message+" the owner is "+name+" and his balance is "+balance;
    }
   
}
